<template>
  <ex_super_dialog_form ref="detailDialog" :title="$tt('集包详情')" v-bind="optionDialog" :noSubmit="true">
  </ex_super_dialog_form>
</template>
<script>

export default {



  data() {
    return {
      optionDialog: {
        customClass: 'dialog_extra',
        detailUrl: "/wms-api/outbound/OutboundBoxRpc/selectBoxDetail.json",
        form: {
          // itemClass: "form_item_default", inputClass: "form_input_default",
          model: [
            {
              key: 'rows', label: '', itemAttrs: {
                'label-width': '0px',
              },
              formType: 'table', 'height': 400,
              model: [
                /**
  
                 */
                // { key: 'inboundOrderCode', label: 'label_inbound_code', width: 200 },
                // { key: 'customerCode', label: 'label_customer_info' },
                { key: 'trackNumber', label: 'label_face_track_code', 'min-width': 120, 'show-overflow-tooltip': true, },
                { key: 'boxNo', label: 'label_package_collection_no', 'min-width': 120, 'show-overflow-tooltip': true, },
                {
                  key: 'supplierName', label: 'label_final_supplier', 'width': 100, 'show-overflow-tooltip': true,
                },
                { key: 'orderStructure', label: 'label_order_type', 'width': 120, 'show-overflow-tooltip': true, formatter: (r, c, v, i) => this.$enumShow(v, 'OutboundOrderStructureEnum') },


                { key: 'weight', label: 'label_total_weight', 'width': 120, 'show-overflow-tooltip': true, },
                { key: 'volume', label: 'label_total_volume', 'width': 120, 'show-overflow-tooltip': true, },

                { key: 'customerCode', label: 'label_customer_info', 'width': 120, 'show-overflow-tooltip': true, },

                { key: 'creationTime', label: 'label_create_time', 'width': 130, formatter: (r, c, v, i) => this.$dateFormat(v) },
                { key: 'pickingTime', label: '订单处理时间', 'width': 130, formatter: (r, c, v, i) => this.$dateFormat(v) },

              ]
            }


          ],

        }
      },

    };
  },


  methods: {
    show(boxNo) {
      if (_.isEmpty(boxNo)) return
      this.$refs.detailDialog.showNew({
        params: {
          boxNo,
        }
      })
    },


  }
};

</script>
<style></style>
